//record.js
//获取应用实例
var app = getApp()
var UserID 
Page({
  data: {
    

  },
  onLoad: function (options) {
    var that = this;
    UserID = app.globalData.UserID;
    wx.request({
      url: 'https://ke.slickghost.com/dk/myDynamic.php',
      data:{
        UserID:UserID
      },
      headers: {
        'Content-Type': 'application/json'
      },
      success: function (res) {
        //将获取到的json数据，存在名字叫array的这个数组中
        that.setData({
        
          array:res.data
        }) 
      
      }
    })
    
   }
  })

